﻿<UserControl x:Class="CrazyWorship1.SongSelectControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:c="clr-namespace:CrazyWorship1"
          
              Width="300">
    
    <Grid>
        <Grid.Resources>
            <c:StatusToColor x:Key="StatusToColor2"/>
        </Grid.Resources>
            <ComboBox Margin="10,10,10,10" Width="280" x:Name="songs" AutomationProperties.AutomationId="SongSelect"  ItemsSource="{Binding Path=AssetManager.SongList}" SelectionChanged="ComboBox_SelectionChanged">
                <ComboBox.ItemTemplate>
                    <DataTemplate >
                        <StackPanel>
                            <TextBlock  Text="{Binding Path=SongName}" Foreground="{Binding Path=Status, Converter={StaticResource StatusToColor2}}"/>
<!--                            <TextBlock Visibility="{Binding Path=Status, Converter={StaticResource StatusToVisibility2}}" Text="{Binding Path=SongName}" Foreground="Green"/>-->
                        </StackPanel>
                    </DataTemplate>
                </ComboBox.ItemTemplate>

            </ComboBox>
    </Grid>
</UserControl>
